package com.wnhz.work.jy.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ListView;
import android.widget.TextView;

import com.wnhz.work.jy.BaseActivity;
import com.wnhz.work.jy.R;
import com.wnhz.work.jy.adapter.Home3_add2Adapter;
import com.wnhz.work.jy.bean.Home3_add2Bean;

import java.util.ArrayList;
import java.util.List;

/**
 * ----嘉轶指数
 */
public class IndexActivity extends BaseActivity implements View.OnClickListener {
    private TextView title;
    private ListView lv_index;

    private Home3_add2Adapter mAdapter2;
    private List<Home3_add2Bean> home3List2 = new ArrayList<>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);

        initView();
    }


    private void initView() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("嘉轶指数");
        findViewById(R.id.btn_main_left).setOnClickListener(this);

        lv_index = (ListView) findViewById(R.id.lv_index);

        mAdapter2 = new Home3_add2Adapter(IndexActivity.this, home3List2);
        lv_index.setAdapter(mAdapter2);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;

            default:
                break;
        }
    }
}
